<template>
  <div>
    <div class="topbar bg-black-1 py-2 pb-1 px-4 d-flex ai-center" style="padding-top: 8px">
      <img src="../assets/logo.png" height="30" />
      <div class="px-3 flex-1">
        <div class="text-white">王者荣耀</div>
        <div class="text-grey pt-1" style=" font-size:8px">团队成就更多</div>
      </div>
      <button type="button" class="btn bg-primary p-1 px-2">立即下载</button>
    </div>
    <div class="bg-primary py-3 pb-2 ">
      <div class="nav text-white nav-invers d-flex"  style="justify-content: space-around">
        <div class="nav-item active">
          <router-link to="/" tag="div" class="nav-link" style="line-height: 16px">首页</router-link>
        </div>
        <div class="nav-item">
          <router-link to="/" tag="div" class="nav-link">攻略中心</router-link>
        </div>
        <div class="nav-item">
          <router-link to="/" tag="div" class="nav-link">赛事中心</router-link>
        </div>
      </div>
    </div>

    <router-view></router-view>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss">
//实现吸顶效果
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
}
</style>